package com.powernode.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class testController {
    @RequestMapping(value = "/exception",method = RequestMethod.POST)
    //method = RequestMethod.POST是要求前端发一个post请求
    //<a>点击超链接是GET请求 Method 'GET' is not supported. (405错误)
    public String toException(){
        return "ok";
    }
}
